class NewsletterMailer < ActionMailer::Base

  def news( contact, newsletter )
    @subject    = 'Newsletter OmegaTI - ' + newsletter.name
    @body       = { :contact => contact, :newsletter => newsletter, :title => @subject }
    @recipients = contact.email
    @from       = 'contato@omegati.com.br'
    @sent_on    = Time.now
  end
  
end
